package com.stylefeng.guns.modular.train.service;

import com.stylefeng.guns.common.persistence.model.MentoringRelation;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author rockjh
 * @since 2018-01-29
 */
public interface IMentoringRelationService extends IService<MentoringRelation> {
    /**
     * 根据师徒关系更新师徒积分
     * @param mentoringRelation
     */
	void updateByMentoringRelationChange(MentoringRelation mentoringRelation,String operation);

    /**
     * 根据师傅编码和年度查找
     * @param masterEmpCode
     * @param year
     */
    List<MentoringRelation> findByMasterEmpCodeYear(String masterEmpCode, String year);

    /**
     * 根据徒弟编码和年度查找
     * @param apprenticeEmpCode
     * @param year
     */
    MentoringRelation findByApprenticeEmpCodeYear(String apprenticeEmpCode,String year);
}
